<?php require('../../public/function.php');connection('blog');
$name=$_GET['title'];
$time=date('Y-m-d H:i:s');
$sql="insert into fenlei(l,ctime) values('$name','$time')";

$res=mysql_query($sql);
if($res){
    echo "<script>alert('添加成功');window.location.href='../articlelist/design.php'</script>";
}else{
    echo "<script>alert('添加失败');window.location.href='../articlelist/design.php'</script>";
}










